<{foreach from=$cats key=id item=cat}>
	<option <{if in_array($id, $arr_related)}>selected<{/if}> value="<{$id}>"><{repeat count=$padding}>&nbsp;&nbsp;&nbsp;<{/repeat}><{$cat.TITLE|utf8_escape_html }></option>
	<{if $cat.childs|@count}>
		<{include file="category_tree_select_related.html" cats=$cat.childs padding=$padding+1 arr_related=$arr_related}>
	<{/if}>
<{/foreach}>